﻿using System;
using System.Data;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace QuanLyTuyenSinh.Reports
{
    public partial class ReportPhieubaoDiem : Form
    {
        public ReportPhieubaoDiem()
        {
            InitializeComponent();
        }

        private void ReportPhieubaoDiem_Load(object sender, EventArgs e)
        {
            string sql = "select * from BangDiemTruot";
            SqlCommand cmd = new SqlCommand(sql, ConnectData.Getcon());
            SqlDataAdapter DTA = new SqlDataAdapter(cmd);
            DataTable DTL = new DataTable();
            DataSet DTS = new DataSet();
            DTA.Fill(DTS, "BangDiemTruot");
            DTL = DTS.Tables["BangDiemTruot"];
            rptPhieubaodiem cry = new rptPhieubaodiem();
            cry.SetDataSource(DTL);
            CryStalDSTSTruot.ReportSource = cry;
            CryStalDSTSTruot.Refresh();
        }

        private void buttonX2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}
